<%@page import="tools.MyTool"%>
<%@page import="java.util.Iterator"%>
<%@page import="accessor.HomeProductAccessor"%>
<%@page import="accessor.Products"%>
<%@include file="no_banner_header.jsp" %>

<%
    if(customer==null){
        response.sendRedirect("login_order.jsp");
        //customer.getLastName();
    }
%>
<link href="../assets/css/frontend/order.css" rel="stylesheet" type="text/css" media="screen" />
<div>
    <script>
        $(document).ready(function() {
            $('#step3').addClass('current');
        });
    </script>
    <div id="order_step">
        <h4>Steps of Order</h4>
        <p>
            <a id="step1" href="home_order.jsp">Products</a>
            <a id="step2" href="login_order.jsp">Login</a>
            <a id="step3" href="address_order.jsp">Address</a>
            <a id="step4" href="summary_order.jsp">Order</a>
        </p>
    </div>
    <div id="order_box">
    <h4>SHIPPING ADDRESS</h4>
    <form action="summary_order.jsp" method="post" accept-charset="utf-8">
        <div class="break_line"></div>
        <table width="80%" align="center">
            <tr>
                <td width="30%">First Name:</td>
                <td><%=customer!=null?customer.getFirstName():""%></td>
            </tr>
            <tr>
                <td width="30%">Last Name:</td>
                <td><%=customer!=null?customer.getLastName():""%></td>
            </tr>
            <tr>
                <td width="30%">Company:</td>
                <td><%=customer!=null?customer.getCompany():""%></td>
            </tr>
            <tr>
                <td width="30%">Phone:</td>
                <td><%=customer!=null?customer.getPhone():""%></td>
            </tr>
            <tr>
                <td width="30%">Address:</td>
                <td><%=customer!=null?customer.getAddress():""%></td>
            </tr>
        </table>
        <input type="button" id="shop_more" class="submit" value="Shop more" size="30" onclick="window.location.href='listing.jsp'" />        
        <input type="submit" class="submit" value="Next" name="submitSummaryNext" style="float:right;margin-right: 20px;"/>
    </form>
    </div>
</div>                              

<div style="clear: both;">&nbsp;</div>
<%@include file="footer.jsp" %>